package com.woniuxy02;

/**
 * @author 作者
 * @create 2025-09-02 15:44
 */
public class Book {
    String isbn;
    String name;
    double price;
    String author;
    String category;
    String publisher;

    public Book() {
    }

    public Book(String isbn, String name, double price, String author, String category, String publisher) {
        this.isbn = isbn;
        this.name = name;
        this.price = price;
        this.author = author;
        this.category = category;
        this.publisher = publisher;
    }
    public Book(String isbn, String name, double price) {
        //必须要在构造方法的第一条语句
        this(isbn, name, price, null, null, null);
        System.out.println("aaa");
    }

    public String show(){
        return "isbn="+isbn+",name="+name+",price="+price+",author="+author+",category="+category+",publisher="+publisher;
    }
}

